package com.example.springbott.controller;

import com.example.springbott.aspactJ.OperationName;
import com.example.springbott.bean.BaseRespVo;
import com.example.springbott.bean.MarketRegion;
import com.example.springbott.bean.common.BasePageInfo;
import com.example.springbott.bean.common.CommonData;
import com.example.springbott.service.AdminRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商场管理/行政区域
 * @author silic xia
 * @since 2022/11/21 10:46
 */
@RestController
@RequestMapping("admin/region")
public class AdminRegionController {

    @Autowired
    AdminRegionService adminRegionService;

    /**
     * 商场管理/行政区域
     * @param
     * @return
     * @author  silic xia
     * @since 2022/11/21 10:54
     */
    @RequestMapping("list")
    @OperationName("1")
    public BaseRespVo adminRegionList(BasePageInfo info){
        CommonData<MarketRegion> data = adminRegionService.adminRegionList();
        return BaseRespVo.ok(data);
    }
}

